package com.lin.community.exception;

/**
 * @ClassName CustomizeException
 * @Description: TODO
 * @Author 林
 * @Date 2020/2/6 0006
 * @Version V1.0
 **/
public class CustomizeException extends RuntimeException{
    private String message;

    public CustomizeException(String message) {
        this.message = message;
    }
    public CustomizeException(ICustomizeErrorCode errorCode) {
        this.message = errorCode.getMessage();
    }
    @Override
    public String getMessage() {
        return message;
    }

}
